-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: xdg-open is now used to reveal a file Linux file system (#674) #711
Conversation
…k and feel in the error messages and so that one can look into the details of the related command line call in case of error.
…viewers. Its now possible to react on the specific return code of the called application.
…orPlatform.open(..).
Instead of Nautilus, |
73ab7c9
to
3ec5ac3
Compare
kit/src/main/java/com/oracle/javafx/scenebuilder/kit/editor/EditorPlatform.java
Show resolved
Hide resolved
app/src/main/java/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java
Show resolved
Hide resolved
app/src/main/java/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java
Show resolved
Hide resolved
app/src/main/resources/com/oracle/javafx/scenebuilder/app/i18n/SceneBuilderApp.properties
Show resolved
Hide resolved
kit/src/main/java/com/oracle/javafx/scenebuilder/kit/editor/EditorController.java
Outdated
Show resolved
Hide resolved
kit/src/main/java/com/oracle/javafx/scenebuilder/kit/editor/EditorPlatform.java
Show resolved
Hide resolved
kit/src/main/resources/com/oracle/javafx/scenebuilder/kit/i18n/SceneBuilderKit.properties
Show resolved
Hide resolved
kit/src/test/resources/com/oracle/javafx/scenebuilder/kit/editor/timeout.cmd
Outdated
Show resolved
Hide resolved
kit/src/test/resources/com/oracle/javafx/scenebuilder/kit/editor/timeout.sh
Outdated
Show resolved
Hide resolved
…ymore. Error handling is not implemented yet.
kit/src/main/java/com/oracle/javafx/scenebuilder/kit/editor/EditorPlatform.java
Show resolved
Hide resolved
kit/src/main/java/com/oracle/javafx/scenebuilder/kit/editor/EditorPlatform.java
Outdated
Show resolved
Hide resolved
kit/src/main/java/com/oracle/javafx/scenebuilder/kit/editor/EditorPlatform.java
Outdated
Show resolved
Hide resolved
kit/src/main/java/com/oracle/javafx/scenebuilder/kit/editor/EditorPlatform.java
Outdated
Show resolved
Hide resolved
Corrected typo.
Fixed indentation.
@jperedadnr I will revert this so that the actual work is still performed in JavaFX application thread as before this change. Main purpose is to address the quality of the error messages and the use of The idea to have this configurable is tracked in issue #738. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This PR removes the call to
nautilus
as file browser and makes use ofxdg-open
instead.On most recent Linux OS, a call to
xdg-open /home/user/myfxmls
will open the directory in a file browser which is specific to the OS and desktop environment.There is one part missing yet, the error handling. Its complained that only an
IOException
is reported. This is indeed quite misleading. A subsequent update of this PR will introduce proper message dialog and show whats wrong.Issue
Fixes #674
Progress